package cn.source.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.report.mapper.EventRecordMapper;
import cn.source.report.domain.EventRecord;
import cn.source.report.service.IEventRecordService;

/**
 * recordService业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2025-06-03
 */
@Service
public class EventRecordServiceImpl implements IEventRecordService 
{
    @Autowired
    private EventRecordMapper eventRecordMapper;

    /**
     * 查询record
     * 
     * @param id record主键
     * @return record
     */
    @Override
    public EventRecord selectEventRecordById(String id)
    {
        return eventRecordMapper.selectEventRecordById(id);
    }

    /**
     * 查询record列表
     * 
     * @param eventRecord record
     * @return record
     */
    @Override
    public List<EventRecord> selectEventRecordList(EventRecord eventRecord)
    {
        return eventRecordMapper.selectEventRecordList(eventRecord);
    }

    /**
     * 新增record
     * 
     * @param eventRecord record
     * @return 结果
     */
    @Override
    public int insertEventRecord(EventRecord eventRecord)
    {
        return eventRecordMapper.insertEventRecord(eventRecord);
    }

    /**
     * 修改record
     * 
     * @param eventRecord record
     * @return 结果
     */
    @Override
    public int updateEventRecord(EventRecord eventRecord)
    {
        return eventRecordMapper.updateEventRecord(eventRecord);
    }

    /**
     * 批量删除record
     * 
     * @param ids 需要删除的record主键
     * @return 结果
     */
    @Override
    public int deleteEventRecordByIds(String[] ids)
    {
        return eventRecordMapper.deleteEventRecordByIds(ids);
    }

    /**
     * 删除record信息
     * 
     * @param id record主键
     * @return 结果
     */
    @Override
    public int deleteEventRecordById(String id)
    {
        return eventRecordMapper.deleteEventRecordById(id);
    }
}
